package games.gameObjects.invaders;

import gameUtils.Coordinate;
import gameUtils.GameMath;
import games.gameObjects.MovementType;

import java.awt.Point;
import java.io.IOException;

import pt.iul.poo.image.MovingImage;
import pt.iul.poo.image.SimpleImage;

public class Dragon extends Invader{

	public static final int PRIORITY = 20;
	public static final int HEALTH_POINTS = 20;
	public static final int VALUE = 1;
	
	private MovingImage img;
	
	public Dragon(final Coordinate c){
		super(c, PRIORITY, HEALTH_POINTS, VALUE);
		try {
			Point p = GameMath.convertToPoint(c);
			img = new MovingImage("Images//dragon.jpg",(int)p.getX(),(int)p.getY(),PRIORITY);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}		

	@Override
	public SimpleImage getImage() {
		return this.img;
	}
	@Override
	public MovementType getMovementType() {
		return MovementType.AERIAL;
	}

}
